package com.kfm.order.mapper;

import com.kfm.common.domain.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    int deleteByPrimaryKey(Integer cartId);

    int insert(ShoppingCart record);

    int insertSelective(ShoppingCart record);

    ShoppingCart selectByPrimaryKey(Integer cartId);

    int updateByPrimaryKeySelective(ShoppingCart record);

    int updateByPrimaryKey(ShoppingCart record);

    List<ShoppingCart> selectAll();

    ShoppingCart selectByMIdAndPId(Integer mid, Integer pid);

    List<ShoppingCart> selectByMId(Integer mid);

    int deleteMultipleElements(List<Integer> primaryKeyList);
}